<%@ page import="java.util.ArrayList" %>
<%@ page import="pom.Activity" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    ArrayList arrayList = new ArrayList();
    arrayList = (ArrayList) request.getAttribute("a");
%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            font-color: #ffffff;
            margin: 0px;
            padding: 0px;
        }

        table tr th {

            font-size: larger;
        }

        table {
            text-align: center;
            color: white;
        }
    </style>
</head>
<body>
<table border="1px">
    <tr>

        <th width="300px">活动名称</th>
        <th width="300px">创建人</th>
        <th width="300px">时间</th>
        <th width="300px">地点</th>
        <th width="300px">操作</th>

    </tr>
    <%for(int i=0;i<arrayList.size();i++) {
         Activity activity = (Activity) arrayList.get(i);
    %>
    <tr>

        <td><%=activity.getActname()%></td>
        <td><%=activity.getPlanner()%></td>
        <td><%=activity.getActtime()%></td>
        <td><%=activity.getActplace()%></td>
        <td><a href="/particulars?name=<%=activity.getActid()%>">详情</a></td>
    </tr>
    <%}%>
</table>
</body>
</html>